/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-04-29
 * Time: 13:12
 */
public class OverLoad {
    public static int add(int x, int y) {
        return x + y;
    }
    public static double add(double x, double y, double z) {
        return x + y + z;
    }
    public static void main(String[] args) {
        System.out.println(add(2,3));
        System.out.println(add(3.1, 2.0, 4.5));
    }
}
